<?php



class RegistrationMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.RegistrationMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('conf_registration');
		$tMap->setPhpName('Registration');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('INVOICE', 'Invoice', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addForeignKey('REGISTRANT_ID', 'RegistrantId', 'int', CreoleTypes::INTEGER, 'conf_registrant', 'ID', true, null);

		$tMap->addForeignKey('CONFERENCE_ID', 'ConferenceId', 'int', CreoleTypes::INTEGER, 'conf_conference', 'ID', true, null);

		$tMap->addColumn('STATUS', 'Status', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('BILL_FIRST_NAME', 'BillFirstName', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('BILL_LAST_NAME', 'BillLastName', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('BILL_ADDRESS', 'BillAddress', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('BILL_CITY', 'BillCity', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('BILL_STATE', 'BillState', 'string', CreoleTypes::VARCHAR, true, 2);

		$tMap->addColumn('BILL_ZIPCODE', 'BillZipcode', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('BILL_COUNTRY', 'BillCountry', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('TOTAL_FEE', 'TotalFee', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('TOTAL_PAID', 'TotalPaid', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('PAYMENT_VERIFIED', 'PaymentVerified', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('ISDAILY', 'Isdaily', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('ISEARLY', 'Isearly', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('BADGEDATE', 'Badgedate', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 